<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
  <!-- 这个页面中不要包含有js!!! -->
  </head>  
  <body>
  	<!-- 验证还是jquery-validation好用，这里省事没用 -->
	<form class="hotelForm" id="hotelForm" method="post">
		<input type="hidden" name="hotelId" id="hotelId">
		<input type="hidden" name="cityCn" id="cityCn">
		<table class="autable">
			<tr>
				<td class="autd1">名  称：</td>
				<td class="autd2"><input name="hotelName" style="width:150px" validType="length[2,30]" class="easyui-validatebox txt" required="true"><span class="red">*</span></td>
			<td class="autd1">星  级：</td>
				<td class="autd2"><input name="hotelLevel" class="easyui-numberspinner"  min="1" max="7" increment="1" style="width:150px;"></td>
			</tr>
			
			<c:if test="${empty param.update}">
			<tr>
				<td class="autd1">国   家：</td>
				<td class="autd2"><input name="countryId" id="qcountryId" class="txt" style="width:150px;" required="true"/><span class="red">*</span></td>
			<td class="autd1">城   市：</td>
				<td class="autd2"><input name="cityId" id="qcityId" class="txt" style="width:150px;" required="true"/><span class="red">*</span></td>
			</tr>
			</c:if>
			
			<tr>
				<td class="autd1">地  址：</td>
				<td class="autd2"><input name="hotelAddr" style="width:150px" validType="maxLength[100]" class="easyui-validatebox txt"></td>
			<td class="autd1">邮  箱：</td>
				<td class="autd2"><input name="hotelEmail" style="width:150px" validType="email" class="easyui-validatebox txt"></td>
			</tr>
			
			
			<tr>
				<td class="autd1">电  话：</td>
				<td class="autd2"><input name="hotelTel" id="hotelTel"  style="width:150px" validType="length[0,20]" class="easyui-validatebox txt"></td>
			<td class="autd1">邮  编：</td>
				<td class="autd2"><input name="hotelPostcode" style="width:150px" validType="zip" class="easyui-validatebox txt"></td>
			</tr>
			<tr>
				<td class="autd1">网  址：</td>
				<td class="autd2"><input name="hotelUrl" style="width:150px" validType="url" class="easyui-validatebox txt" ></td>
			<td class="autd1">标准价格：</td>
				<td class="autd2"><input name="stPrice" style="width:150px" validType="number" class="easyui-validatebox txt" required="true"><span class="red">*</span></td>
			</tr>
			
			<tr>
			<td class="autd1">位  置：</td>
				<td class="autd2"><input name="hotelLocation" style="width:150px" validType="length[0,50]" class="easyui-validatebox txt"></td>
				<td class="autd1">备注：</td>
				<td class="autd2" ><textarea name="remark" class="txtarea"></textarea></td>
			</tr>
			
			<tr>
				<td class="autd3" colspan="2">
					<a href="#" id="btn-back" onclick="$('#MyPopWindow').window('close');" class="easyui-linkbutton" iconCls="icon-cancel">取消</a>
					
				</td>
				<td class="autd3" colspan="2">
					
					<a href="#" id="btn-add" onclick="addOrUpdateHotel('${param.update}');" class="easyui-linkbutton" iconCls="icon-save">保存</a>
				</td>
			</tr>
		</table>
	</form>
  </body>
</html>
